﻿@model IEnumerable<QizSessionDetail>
@{ViewBag.Title = "数据分析";
  string rid = ViewBag.RecuperID;
}
@using (Ajax.BeginForm("QizItemValueAnalysis", new { IsView = false }, new AjaxOptions
{
    HttpMethod = "Post",
    LoadingElementId = "OnLoadingSpan",
    UpdateTargetId = "main",
    OnFailure = "OnSiteError"
}))
{

    <fieldset>
        <legend>
            <div class="catalog-title">
                指标数据分析</div>
        </legend>随访指标： @Html.DropDownList("ItemID", new SelectList(ViewBag.Items, "ID", "Title", ViewBag.ItemID))
        @Html.Hidden("RecuperID", rid)
        @Helpers.SubmitButton("查询", "qssubmit")
    </fieldset>
}
<div id="chartview">
    @if (string.IsNullOrEmpty(ViewBag.ItemID))
    {
        <h2>
            没有数据，请选择要查询的指标。</h2>
    }
    else
    {
        <img alt="数据分析图" src="@(Url.Action(ViewBag.ItemType == "2" ? "QizItemValueAnalysisLine" : "QizItemValueAnalysisPie", new { Img = true, ItemID = ViewBag.ItemID, RecuperID = ViewBag.RecuperID }))" />
    }
</div>
